package com.limh.readers.net

import com.limh.readers.bean.Result
import retrofit2.http.POST
import retrofit2.http.QueryMap
import rx.Observable

/**
 * Function:
 * author: limh
 * time:2017/7/21
 */
interface ServerApi {
    @POST("user/login/")
    fun login(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("user/update/")
    fun update(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("user/register/")
    fun regidter(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("magazine/list")
    fun getMagazine(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("magazine/content/")
    fun getMagzContent(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("article/list/")
    fun getArticle(@QueryMap params: Map<String, String>): Observable<Result>

    @POST("article/content/")
    fun getArtContent(@QueryMap params: Map<String, String>): Observable<Result>
}